package com.duobaoyu.dby.supply.biz.service.order.event;

import com.duobaoyu.dby.supply.biz.client.boundary.order.bean.bo.OrderBO;
import com.duobaoyu.dby.supply.biz.client.boundary.order.bean.bo.OrderConfirmResultBO;
import lombok.Getter;
import lombok.ToString;
import org.springframework.context.ApplicationEvent;


/**
 * 订单确认成功事件
 * @author chenms
 * @date 2023/11/16 9:28 AM
 */
@Getter
@ToString
public class OrderConfirmSuccessEvent extends ApplicationEvent {

    /**
     * 订单
     */
    private OrderBO order;

    /**
     * 确认成功结果
     */
    private OrderConfirmResultBO.ConfirmSuccessBO confirmSuccess;

    public OrderConfirmSuccessEvent(OrderBO order, OrderConfirmResultBO.ConfirmSuccessBO confirmSuccess) {
        super(order);
        this.order = order;
        this.confirmSuccess = confirmSuccess;
    }
}
